package rescsa.gob.pe.defecto.service;

import java.util.List;

import rescsa.gob.pe.defecto.bean.DefectoBEAN;
import rescsa.gob.pe.factory.DAOFactory;

public class DefectoServiceImplementacion implements DefectoService{

	DAOFactory factory=DAOFactory.getFactory(DAOFactory.MYSQL);
	DefectoService dao= factory.getDefectoService();
	
	@Override
	public List<DefectoBEAN> ListaDefectos() throws Exception {
		return dao.ListaDefectos();
	}

	@Override
	public List<DefectoBEAN> ListaDefectosActividad(String codigo_defecto)
			throws Exception {
		return dao.ListaDefectosActividad(codigo_defecto);
	}

	@Override
	public DefectoBEAN ObtenerDefectos(int codigo_defecto)
			throws Exception {
		return dao.ObtenerDefectos(codigo_defecto);
	}

}
